"""
函数修改全局变量
"""
x = 10


def test():
    global x
    x = 20


test()
print(f'x = {x}')
